import request from '@/utils/request'

// 更新密码
export const updatePassword = (data) => {
  return request.patch('/my/updatepwd', data)
}
// 获取 头像昵称 等
export const getHeader = (obj) => {
  return request.get('/my/userinfo', {
    params: {
      obj
    }
  })
}
// 更新用户基本资料
export const upInfo = data => {
  return request.put('/my/userinfo', data)
}
